<?php

/**
 * Author: Jesse
 * Email : jessedev@163.com
 * Date: 2024/6/15 11:42
 * FileName: OrderService.php
 * DESC: The Relentless Pursuit of Perfection.
 */

namespace App\Services;

use ApiClient\User\Interfaces\UserServiceInterface;
use Hyperf\RpcServer\Annotation\RpcService;

#[RpcService(name: 'UserService', server: 'jsonrpc', protocol: 'jsonrpc', publishTo: 'nacos')]
class UserService implements UserServiceInterface
{
    /**
     * 获取订单列表
     *
     * @param array $params
     * @return array
     */
    public function getList(array $params = []): array
    {
        return [
            [
                'id' => 1,
                'name' => '测试',
                'age' => 18,
            ],
        ];
    }
}